import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const BLOG: AppRouteRecordRaw = {
  path: '/blog',
  name: 'Blog',
  component: DEFAULT_LAYOUT,
  children: [
    {
      path: 'article',
      name: 'Article',
      component: () => import('@/views/blog/article/index.vue'),
      meta: {
        locale: 'menu.blog.article',
        requiresAuth: true,
      },
    },
    {
      path: 'category',
      name: 'Category',
      component: () => import('@/views/blog/category/index.vue'),
      meta: {
        locale: 'menu.blog.category',
        requiresAuth: true,
      },
    },
    {
      path: 'timeline',
      name: 'TimeLine',
      component: () => import('@/views/blog/timeline/index.vue'),
      meta: {
        locale: 'menu.blog.timeline',
        requiresAuth: true,
      },
    },
    {
      path: 'announcement',
      name: 'Announcement',
      component: () => import('@/views/blog/announcement/index.vue'),
      meta: {
        locale: 'menu.blog.announcement',
        requiresAuth: true,
      },
    },
    {
      path: 'webconfig',
      name: 'WebConfig',
      component: () => import('@/views/blog/webconfig/index.vue'),
      meta: {
        locale: 'menu.blog.webconfig',
        requiresAuth: true,
      },
    },
    {
      path: 'links',
      name: 'Links',
      component: () => import('@/views/blog/links/index.vue'),
      meta: {
        locale: 'menu.blog.links',
        requiresAuth: true,
      },
    },
  ],
};

export default BLOG;
